#include "mytool.h"
#include <QString>
#include <fstream>
MyTool::MyTool()
{
    this->style = new char[5000];
}

MyTool::~MyTool()
{
    //delete[] this->place;
    //delete[] this->gjnode;
}

node *MyTool::getAllData()
{
    node data[300] =
    {

            {	0	,	0	,	0	,	1	,	0	,	1	,"",""},
            {	1	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	2	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	3	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	5	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	6	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	7	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	8	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	9	,	0	,	0	,	1	,	1	,	1	,"北门","有2路公交，可达车站，校外的亿丰大厦是学生闲暇的不错去处。"},
            {	10	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	11	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	12	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	13	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	14	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	15	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	16	,	0	,	0	,	0	,	1	,	1	,"",""},
            {	17	,	0	,	0	,	1	,	1	,	0	,"",""},
            {	0	,	1	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	1	,	0	,	1	,	0	,	1	,"",""},
            {	2	,	1	,	0	,	1	,	1	,	1	,"",""},
            {	3	,	1	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	1	,	0	,	1	,	1	,	1	,"",""},
            {	5	,	1	,	0	,	0	,	1	,	1	,"",""},
            {	6	,	1	,	0	,	1	,	1	,	1	,"",""},
            {	7	,	1	,	0	,	1	,	1	,	1	,"8-22宿舍","同学们的住宿地点。"},
            {	8	,	1	,	0	,	1	,	1	,	1	,"3餐","学校四大餐厅之一，有三层，饭菜美味可口。"},
            {	9	,	1	,	1	,	1	,	1	,	1	,"",""},
            {	10	,	1	,	0	,	1	,	1	,	1	,"",""},
            {	11	,	1	,	0	,	1	,	1	,	1	,"",""},
            {	12	,	1	,	0	,	0	,	1	,	1	,"",""},
            {	13	,	1	,	0	,	0	,	1	,	1	,"",""},
            {	14	,	1	,	0	,	0	,	1	,	1	,"",""},
            {	15	,	1	,	0	,	0	,	1	,	1	,"",""},
            {	16	,	1	,	0	,	1	,	1	,	0	,"",""},
            {	17	,	1	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	2	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	2	,	1	,	1	,	0	,	1	,"第4体育场","位于学校的西面，有着足球场和篮球场和各种设施。	"},
            {	2	,	2	,	1	,	1	,	1	,	1	,"",""},
            {	3	,	2	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	2	,	1	,	1	,	1	,	1	,"4餐","学校四大餐厅之中最高大上的餐厅，有两个楼层，二楼环境优雅，食品高档。"},
            {	5	,	2	,	0	,	0	,	1	,	1	,"",""},
            {	6	,	2	,	1	,	1	,	1	,	1	,"大学生艺术中心","举办迎新生文艺晚会，校园文化艺术竞赛，校园歌手大赛，以及与各高校开展的文艺交流活动等	"},
            {	7	,	2	,	1	,	1	,	1	,	1	,"",""},
            {	8	,	2	,	1	,	1	,	1	,	1	,"大学生事务中心","为学生服务，帮助学生成才、解决学生困难、方便学生办事。"},
            {	9	,	2	,	1	,	1	,	1	,	1	,"",""},
            {	10	,	2	,	1	,	1	,	1	,	1	,"第3体育场","位于稷下湖的北面，只有篮球场。"},
            {	11	,	2	,	1	,	1	,	1	,	0	,"",""},
            {	12	,	2	,	0	,	0	,	0	,	0	,"",""},
            {	13	,	2	,	0	,	0	,	0	,	0	,"",""},
            {	14	,	2	,	0	,	0	,	0	,	0	,"",""},
            {	15	,	2	,	0	,	0	,	0	,	0	,"",""},
            {	16	,	2	,	1	,	1	,	0	,	0	,"",""},
            {	17	,	2	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	3	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	3	,	1	,	1	,	0	,	0	,"",""},
            {	2	,	3	,	1	,	1	,	0	,	1	,"",""},
            {	3	,	3	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	3	,	1	,	1	,	1	,	1	,"校医院","学校里唯一的一家医院，是同学们体检的主要场所，平时感冒之类的小病可以去这里治疗，严重点的就去学校外面吧。"},
            {	5	,	3	,	0	,	0	,	1	,	1	,"",""},
            {	6	,	3	,	1	,	1	,	1	,	1	,"",""},
            {	7	,	3	,	1	,	1	,	1	,	1	,"艺术广场","在稷下湖的西面就是大学生艺术广场（俗称大坑）。这时个非常活跃的地方，很多的大型晚会都是在这里举行的，是理工大的一个标志性地方，可以容纳上千观众，举办的节目当然也是相当的精彩了。"},
            {	8	,	3	,	1	,	1	,	1	,	1	,"",""},
            {	9	,	3	,	1	,	1	,	1	,	1	,"",""},
            {	10	,	3	,	1	,	1	,	1	,	1	,"",""},
            {	11	,	3	,	1	,	1	,	1	,	1	,"",""},
            {	12	,	3	,	0	,	0	,	1	,	1	,"",""},
            {	13	,	3	,	0	,	1	,	1	,	0	,"博大花园","教师公寓。"},
            {	14	,	3	,	0	,	0	,	0	,	0	,"",""},
            {	15	,	3	,	0	,	0	,	0	,	0	,"",""},
            {	16	,	3	,	1	,	1	,	0	,	0	,"",""},
            {	17	,	3	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	4	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	4	,	1	,	0	,	0	,	1	,"15号教学楼","理学院教学办公地点，【山东理工大学理学院是山东理工大学旗下的理学院，前身是数学与信息科学学院、物理与光电信息技术学院，于2008年7月成立，学院下有五系一室两所（数学系、信息与计算科学系、统计系、物理学系、光信息科学与技术系、高等数学教研室、应用数学研究所、计算物理研究所）。】"},
            {	2	,	4	,	1	,	1	,	1	,	1	,"",""},
            {	3	,	4	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	4	,	1	,	0	,	1	,	1	,"理工长廊","这里是一个神奇的地方，是除学校四大餐厅之外的一个小吃街，这里的饭菜非常好吃。"},
            {	5	,	4	,	0	,	1	,	1	,	1	,"",""},
            {	6	,	4	,	1	,	1	,	1	,	1	,"11号教学楼","美术学院教学地点，以及学院附属实验室所在地。【设有美术学系和艺术设计系。美术学系设有中国画和油画两个专业方向；艺术设计系设有视觉传达、环境艺术设计和陶瓷艺术设计三个专业方向。美术学院现有教职工52人，其中专业教师42人。副教授及以上职称16人，具有硕士及以上学位教师20人，师资力量充实。美术，学院教学楼建筑面积达12400余平方米，设计先进，功能齐全，有高档配置的临摹拷贝室、电脑工作室、摄影工作室、电脑教学研究室、陶艺实验室等。截止2011年6月，共有全日制普通本科在校生968人，中韩合作办学项目专科学生177人，硕士研究生32人。】"},
            {	7	,	4	,	1	,	1	,	1	,	1	,"",""},
            {	8	,	4	,	1	,	1	,	1	,	1	,"10号教学楼","音乐学院，学生多才多艺，能歌善舞。"},
            {	9	,	4	,	1	,	1	,	1	,	1	,"",""},
            {	10	,	4	,	1	,	1	,	1	,	1	,"稷下湖风景区","在体育场的北面就是稷下湖风景区，这是学校的花园，清澈的湖水和环绕着湖水的山坡，绿树成荫，风景很美，是个聚会散步的好地方。"},
            {	11	,	4	,	1	,	1	,	1	,	0	,"",""},
            {	12	,	4	,	0	,	0	,	0	,	0	,"",""},
            {	13	,	4	,	1	,	1	,	0	,	0	,"",""},
            {	14	,	4	,	0	,	0	,	0	,	0	,"",""},
            {	15	,	4	,	0	,	0	,	0	,	0	,"",""},
            {	16	,	4	,	1	,	1	,	0	,	0	,"",""},
            {	17	,	4	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	5	,	0	,	0	,	0	,	0	,"",""},
            {	2	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	3	,	5	,	0	,	0	,	0	,	0	,"",""},
            {	4	,	5	,	0	,	0	,	0	,	0	,"",""},
            {	5	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	6	,	5	,	1	,	1	,	0	,	1	,"9号教学楼","计算机科学与技术学院教学地点，以及学院附属实验室所在地。【计算机科学与技术学院是山东省最早设立的信息技术类、工程类专业院系之一，现有教职工131人，其中教授12人，副教授49人，博士30人，山东省高校中青年学术骨干和学科带头人培养对象2人，泰山学者海外特聘教授1人。】	"},
            {	7	,	5	,	1	,	1	,	1	,	1	,"",""},
            {	8	,	5	,	1	,	1	,	1	,	0	,"8号教学楼","外国语学院，有英语、英语教育、商务英语、日本语、韩国语、应用韩国语等多个学科专业！"},
            {	9	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	10	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	11	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	12	,	5	,	0	,	0	,	0	,	0	,"",""},
            {	13	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	14	,	5	,	0	,	0	,	0	,	0	,"",""},
            {	15	,	5	,	0	,	0	,	0	,	0	,"",""},
            {	16	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	17	,	5	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	6	,	1	,	1	,	0	,	1	,"西门","山东理工大学的西校门。"},
            {	1	,	6	,	0	,	1	,	1	,	1	,"",""},
            {	2	,	6	,	1	,	0	,	1	,	1	,"",""},
            {	3	,	6	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	6	,	0	,	1	,	1	,	1	,"",""},
            {	5	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	6	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	7	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	8	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	9	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	10	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	11	,	6	,	1	,	0	,	1	,	1	,"",""},
            {	12	,	6	,	0	,	1	,	1	,	1	,"",""},
            {	13	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	14	,	6	,	0	,	1	,	1	,	1	,"",""},
            {	15	,	6	,	0	,	1	,	1	,	1	,"",""},
            {	16	,	6	,	1	,	1	,	1	,	1	,"",""},
            {	17	,	6	,	1	,	1	,	1	,	0	,"东门","山东理工大学的东门。"},
            {	0	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	7	,	1	,	1	,	0	,	1	,"5号实验楼","山东理工大学主要实验楼之一。"},
            {	2	,	7	,	0	,	0	,	1	,	1	,"",""},
            {	3	,	7	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	7	,	1	,	1	,	1	,	0	,"13号教学楼","电气与电子工程学院，化学工程学院，材料科学与工程学院，生命科学学院的教学办公地点。"},
            {	5	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	6	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	7	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	8	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	9	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	10	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	11	,	7	,	0	,	0	,	0	,	0	,"",""},
            {	12	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	13	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	14	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	15	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	16	,	7	,	1	,	1	,	0	,	0	,"大红炉","国家级众创空间，并纳入了国家级科技企业孵化器管理服务体系，满足师生创新创业需求"},
            {	17	,	7	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	8	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	8	,	1	,	1	,	0	,	1	,"4号实验楼","山东理工大学主要实验楼之一。"},
            {	2	,	8	,	0	,	0	,	1	,	1	,"",""},
            {	3	,	8	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	8	,	1	,	1	,	1	,	0	,"12号教学楼","机械工程学院，交通与车辆工程学院，农业工程与食品科学学院，建筑工程学院，资源与环境工程学院的教学办公地点。	"},
            {	5	,	8	,	1	,	1	,	0	,	0	,"",""},
            {	6	,	8	,	1	,	1	,	0	,	1	,"5号教学楼","理工大学主要教学楼之一，公共科目的教学地点。"},
            {	7	,	8	,	1	,	1	,	1	,	1	,"",""},
            {	8	,	8	,	1	,	1	,	1	,	1	,"4号教学楼","理工大学主要教学楼之一，公共科目的教学地点。"},
            {	9	,	8	,	1	,	1	,	1	,	1	,"",""},
            {	10	,	8	,	1	,	1	,	1	,	1	,"第2体育场","第2体育场非常的大，是举办运动会是使用的体育场，在信息楼的旁边，体育场中各个设备都很完善，是进行体育运动的好地方。	"},
            {	11	,	8	,	0	,	0	,	1	,	1	,"",""},
            {	12	,	8	,	1	,	1	,	1	,	1	,"",""},
            {	13	,	8	,	1	,	1	,	1	,	1	,"1-4公寓","同学们的住宿地点。"},
            {	14	,	8	,	1	,	1	,	1	,	1	,"2餐","学校四大食堂之一，食堂以菜类为主，还有各种小吃，深受师生喜爱。"},
            {	15	,	8	,	1	,	1	,	1	,	1	,"",""},
            {	16	,	8	,	1	,	1	,	1	,	0	,"第1体育场","第1体育场的西面就是第一餐厅和第二餐厅，里宿舍楼非常的近，离一号和二号教学楼意思比较近的。"},
            {	17	,	8	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	9	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	9	,	1	,	1	,	0	,	1	,"",""},
            {	2	,	9	,	0	,	0	,	1	,	1	,"",""},
            {	3	,	9	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	9	,	1	,	1	,	1	,	1	,"",""},
            {	5	,	9	,	1	,	0	,	1	,	1	,"",""},
            {	6	,	9	,	1	,	1	,	1	,	1	,"",""},
            {	7	,	9	,	1	,	0	,	1	,	1	,"图书馆","在第2体育场的西面就是逸夫图书馆了，这里是绿岛区域，很安静。"},
            {	8	,	9	,	1	,	1	,	1	,	1	,"",""},
            {	9	,	9	,	1	,	1	,	1	,	1	,"1号实验楼","山东理工大学主要实验楼之一。"},
            {	10	,	9	,	1	,	1	,	1	,	1	,"3号教学楼","理工大学主要教学楼之一，公共科目的教学地点。"},
            {	11	,	9	,	0	,	0	,	1	,	1	,"",""},
            {	12	,	9	,	1	,	1	,	1	,	1	,"信息楼","在连心湖的西北方向就是信息楼，信息楼里面可以供学生上网查资料，学校的各种信息部门也在这里的。	"},
            {	13	,	9	,	1	,	0	,	1	,	1	,"",""},
            {	14	,	9	,	1	,	1	,	1	,	1	,"1餐","学校四大食堂之一，有两层楼，食品种类众多，食品美味可口。"},
            {	15	,	9	,	1	,	1	,	1	,	1	,"",""},
            {	16	,	9	,	1	,	1	,	1	,	0	,"理工驾校","学生空余时间很方便在此考驾照，学习时间短，效率高，而且费用低。"},
            {	17	,	9	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	10	,	1	,	1	,	0	,	0	,"机械交通实验中心	","机械工程学院和交通与车辆工程学院各个实验室与办公室所在地。"},
            {	2	,	10	,	0	,	0	,	0	,	0	,"",""},
            {	3	,	10	,	0	,	0	,	0	,	0	,"",""},
            {	4	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	5	,	10	,	0	,	0	,	0	,	0	,"",""},
            {	6	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	7	,	10	,	0	,	0	,	0	,	0	,"",""},
            {	8	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	9	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	10	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	11	,	10	,	0	,	0	,	0	,	0	,"",""},
            {	12	,	10	,	1	,	1	,	0	,	1	,"",""},
            {	13	,	10	,	0	,	1	,	1	,	1	,"鸿远楼","这是学校的主要办公区域，也是学校的门面，在学校南门，也是正门。鸿远楼前有个广场，适合一些小型的活动。"},
            {	14	,	10	,	1	,	1	,	1	,	1	,"2号教学楼","国防教育学院、法学院以及文学院教学楼。"},
            {	15	,	10	,	1	,	1	,	1	,	0	,"",""},
            {	16	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	17	,	10	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	11	,	1	,	1	,	0	,	0	,"",""},
            {	1	,	11	,	1	,	0	,	0	,	1	,"",""},
            {	2	,	11	,	0	,	0	,	1	,	1	,"",""},
            {	3	,	11	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	11	,	1	,	0	,	1	,	1	,"",""},
            {	5	,	11	,	0	,	0	,	1	,	1	,"",""},
            {	6	,	11	,	1	,	0	,	1	,	1	,"",""},
            {	7	,	11	,	0	,	0	,	1	,	1	,"",""},
            {	8	,	11	,	1	,	0	,	1	,	1	,"",""},
            {	9	,	11	,	1	,	0	,	1	,	1	,"",""},
            {	10	,	11	,	1	,	0	,	1	,	1	,"",""},
            {	11	,	11	,	0	,	0	,	1	,	1	,"",""},
            {	12	,	11	,	1	,	0	,	1	,	1	,"",""},
            {	13	,	11	,	1	,	1	,	1	,	1	,"",""},
            {	14	,	11	,	1	,	0	,	1	,	1	,"1号教学楼","鲁泰学院教学楼。"},
            {	15	,	11	,	1	,	0	,	1	,	1	,"",""},
            {	16	,	11	,	1	,	0	,	1	,	0	,"",""},
            {	17	,	11	,	1	,	1	,	0	,	0	,"",""},
            {	0	,	12	,	1	,	0	,	0	,	1	,"",""},
            {	1	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	2	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	3	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	4	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	5	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	6	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	7	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	8	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	9	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	10	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	11	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	12	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	13	,	12	,	1	,	0	,	1	,	1	,"南门","山东理工大学的南门。"},
            {	14	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	15	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	16	,	12	,	0	,	0	,	1	,	1	,"",""},
            {	17	,	12	,	1	,	0	,	1	,	0	,"",""}
        };
    this->place = new node[300];
    for(int i = 0;i<234;i++)
    {
        place[i] = data[i];
    }
    return this->place;
}

gjlx *MyTool::getAllGJnode()
{
    this->gjnode = new gjlx[100];
    gjlx gjlx2[100] =

    {
        {0,6,0},
        {1,6,1},
        {2,6,1},
        {2,5,1},
        {2,4,1},
        {1,4,1},
        {1,3,1},
        {1,2,1},
        {2,2,1},
        {3,2,1},
        {4,2,1},
        {4,3,1},
        {4,4,1},
        {5,4,1},
        {6,4,1},
        {6,5,1},
        {7,5,1},
        {8,5,1},
        {8,4,1},
        {8,3,1},
        {7,3,1},
        {6,3,1},
        {6,2,1},
        {6,1,1},
        {7,1,1},
        {8,1,1},
        {8,2,1},
        {9,2,1},
        {9,1,1},
        {9,0,0},
        {9,1,2},
        {9,2,2},
        {10,2,2},
        {10,3,2},
        {10,4,2},
        {11,4,2},
        {11,3,2},
        {12,3,2},
        {13,3,2},
        {13,4,2},
        {13,5,2},
        {13,6,2},
        {14,6,2},
        {15,6,2},
        {16,6,2},
        {17,6,0},
        {16,6,3},
        {16,7,3},
        {16,8,3},
        {16,9,3},
        {15,9,3},
        {15,8,3},
        {14,8,3},
        {14,9,3},
        {14,10,3},
        {14,11,3},
        {13,11,3},
        {13,12,0},
        {13,11,4},
        {13,10,4},
        {12,10,4},
        {12,9,4},
        {13,9,4},
        {13,8,4},
        {12,8,4},
        {11,8,4},
        {10,8,4},
        {10,9,4},
        {9,9,4},
        {9,8,4},
        {8,8,4},
        {8,9,4},
        {7,9,4},
        {7,8,4},
        {6,8,4},
        {6,9,4},
        {6,10,4},
        {6,11,4},
        {5,11,4},
        {4,11,4},
        {3,11,4},
        {2,11,4},
        {1,11,4},
        {1,10,4},
        {1,9,4},
        {1,8,4},
        {2,8,4},
        {3,8,4},
        {4,8,4},
        {4,7,4},
        {3,7,4},
        {2,7,4},
        {1,7,4},
        {1,6,4}
    };
    for(int i = 0;i<94;i++)
    {
        this->gjnode[i] = gjlx2[i];
    }
    return gjnode;
}

bool MyTool::isDigitStr(QString src)
{
    QByteArray ba = src.toLatin1();//QString 转换为 char*
     const char *s = ba.data();
    if(src.length()>4)
        return 0;
    while(*s && *s>='0' && *s<='9') s++;

    if (*s)
    { //不是纯数字
        return 0;
    }
    else
    { //纯数字
        return 1;
    }
}

void MyTool::readStyle()
{
    std::fstream in("d://style.css",std::ios::in);
    std::string all;
    while(in.peek()!=EOF)
    {
        std::string line;
        std::getline(in,line);
        all+=line;
    }
    in.close();
    strcpy(this->style,all.c_str());
}
